import { lazy } from 'react';
import { LogoutIcon } from 'tdesign-icons-react';
import { IRouter } from '../index';

const result: IRouter[] = [
  {
    path: '/platform/login',
    meta: {
      title: '平台端-登陆',
      Icon: LogoutIcon,
    },
    Component: lazy(() => import('pages/Login')),
    isFullPage: true,

  },
  {
    path: '/client/login',
    meta: {
      title: '客户端-登陆',
      Icon: LogoutIcon,
    },
    Component: lazy(() => import('pages/Login')),
    isFullPage: true,
  },
  {
    path: '/platform/register',
    meta: {
      title: '注册页',
      Icon: LogoutIcon,
    },
    children: [
      {
        path: 'company',
        Component: lazy(() => import('pages/Login/RegisterCompany')),
        isFullPage: true,
        meta: {
          title: '平台端-企业注册',
        },
      },
      {
        path: 'staff',
        Component: lazy(() => import('pages/Login/RegisterStaff')),
        isFullPage: true,
        meta: {
          title: '平台端-员工注册',
        },
      },
    ],
  },
  {
    path: '/client/register',
    meta: {
      title: '注册页',
      Icon: LogoutIcon,
    },
    children: [
      {
        path: 'company',
        Component: lazy(() => import('pages/Login/RegisterCompany')),
        isFullPage: true,
        meta: {
          title: '客户端-企业注册',
        },
      },
      {
        path: 'staff',
        Component: lazy(() => import('pages/Login/RegisterStaff')),
        isFullPage: true,
        meta: {
          title: '客户端-员工注册',
        },
      },
    ],
  },
  {
    path: '/platform/forget_password',
    meta: {
      title: '找回密码',
      Icon: LogoutIcon,
    },
    children: [
      {
        path: 'index',
        Component: lazy(() => import('pages/Login/forgetPassword')),
        isFullPage: true,
        meta: {
          title: '平台端-找回密码',
        },
      },
    ],
  },
  {
    path: '/client/forget_password',
    meta: {
      title: '找回密码',
      Icon: LogoutIcon,
    },
    children: [
      {
        path: 'index',
        Component: lazy(() => import('pages/Login/forgetPassword')),
        isFullPage: true,
        meta: {
          title: '客户端-找回密码',
        },
      },
    ],
  },
  // {
  //   path: '/login2',
  //   meta: {
  //     title: '登录页',
  //     Icon: LogoutIcon,
  //   },
  //   children: [
  //     {
  //       path: 'index_bak',
  //       Component: lazy(() => import('pages/LoginBak')),
  //       isFullPage: true,
  //       meta: {
  //         title: '登录中心',
  //       },
  //     },
  //   ],
  // },
];

export default result;
